#ifndef _PRASE_H_
#define _PRASE_H_

#include "stm32f10x.h"

#define START_BYTE	0x99

#define WaitForStartByte	0x01
#define WaitForDataLength	0x02
#define WaitForData			0x04
#define WaitForChksum		0x08

typedef struct {
	uint8_t code[20][20];
	uint8_t len;
	uint8_t	front, rear;
}InstCode_type;

extern InstCode_type InstCode;

void prase_mavlink(uint8_t ch);
void info2MT7688(void);

#endif
